package com.thinkgem.jeesite.modules.task.uk.taskjob;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.thinkgem.jeesite.common.utils.CalendarUtils;
import com.thinkgem.jeesite.modules.employee.service.OutsourceCostDetailService;

/**
 * Created by xiaole.zheng on 2017/7/26.
 */
@Component("statistcalOutsourceCostDetailTask")
public class StatistcalOutsourceCostDetailTask {
    @Autowired
    private OutsourceCostDetailService outsourceCostDetailService;
    /**
     * 生成外包工每天运营成本
     */
    public void doSomeThing(){
        Date date =  CalendarUtils.diffDate(new Date(),1);
        outsourceCostDetailService.genToDayOutsourceCostDetail(date);
    }
}
